package com.czk.domain.protocol;

import com.czk.domain.MsgDemo02;
import com.czk.domain.MsgDemo03;
import com.czk.domain.MsgDemo1;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/4/30 10:22
 */
public class PacketClazzMap {
    public static final Map<Byte, Class<? extends Packet>> packetTypeMap = new ConcurrentHashMap<>(16);

    static {
        packetTypeMap.put(Command.demo01, MsgDemo1.class);
        packetTypeMap.put(Command.demo02, MsgDemo02.class);
        packetTypeMap.put(Command.demo03, MsgDemo03.class);
    }
}
